import { registerNode } from '@topology/core'
import {
  myclass,
  simpleClass,
  simpleClassIconRect,
  simpleClassTextRect,
  interfaceClass,
  interfaceClassIconRect,
  interfaceClassTextRect,
  myAnchors,
  ktClassIconRect,
  ktClassTextRect
} from './class/index'

export function register() {
  registerNode(
    'kt',
    simpleClass,
    null,
    ktClassIconRect,
    ktClassTextRect
  )
  registerNode(
    'ktstate',
    simpleClass,
    null,
    simpleClassIconRect,
    simpleClassTextRect
  )
  registerNode(
    'room',
    simpleClass,
    null,
    simpleClassIconRect,
    simpleClassTextRect
  )
  registerNode(
    'interfaceClass',
    interfaceClass,
    null,
    interfaceClassIconRect,
    interfaceClassTextRect
  )
  registerNode(
    'ktsd',
    simpleClass,
    myAnchors,
    simpleClassIconRect,
    simpleClassTextRect
  )
}
